package com.sdy.dcsb.biz.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;


@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence(value = "SEQ_ESB_SERVICE_API_LOG", clazz = Integer.class)
public class EsbServiceApiLog extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
   @TableId(value = "id",type = IdType.INPUT)
    private Integer id;

    /**
     * API id对应ESB_SERVICE_API.ID
     */
    private Integer apiId;

    /**
     * 操作账号
     */
    private String username;


    /**
     * 操作时间
     */
    @JsonFormat(pattern = DATETIME_FORMAT)
    private Date operationTime;

    /**
     * 操作类型 0:新增,1:修改,2:EXCEL导入,
     * 3:提交审核,4:审核通过,5:回退,6:发布
     */
    private String operationType;

    /**
     * 操作信息
     */
    private String operationMessage;

}
